﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace MediaAdmin.Application.Config
{
    public class Config : IConfig
    {
        public bool DebugMode
        {
            get
            {
                return bool.Parse(ConfigurationManager.AppSettings["DebugMode"]);
            }
        }

        public string AdminEmail
        {
            get
            {
                return ConfigurationManager.AppSettings["AdminEmail"] as string;
            }
        }

        public bool EnableMail
        {
            get
            {
                return bool.Parse(ConfigurationManager.AppSettings["EnableMail"]);
            }
        }

        public MailSettings MailSettings
        {
            get
            {
                return (MailSettings)ConfigurationManager.GetSection("mailConfig");
            }
        }

        public StorageSettings StorageSettings
        {
            get
            {
                return (StorageSettings)ConfigurationManager.GetSection("storageConfig");
            }
        }

    }

}